package com.zxy.ider.ehome;

import android.content.Context;

import org.litepal.LitePalApplication;
import org.xutils.x;

/**
 * Created by zxy on 2017/3/22.
 */

public class Appcontext extends android.app.Application{
    private static Context context;

    public void onCreate(){
        super.onCreate();
        x.Ext.init(this);
        Appcontext.context = getApplicationContext();
        LitePalApplication.initialize(context);
    }

    public static Context getAppContext() {
        return Appcontext.context;
    }
}
